package com.lfy;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

public class Exp {

    public String test(Exception e){
        System.out.println(e);
        return "全局异常处理";
    }
}
